var targetPie : GameObject;

private var targetScript : TargetPieScript;

function Start (){

	targetScript = targetPie.gameObject.GetComponent("TargetPieScript");
}

function Update () {
var temp = targetScript.numTotal;

//update text mesh with lemonCount
GetComponent(TextMesh).text = "Size: " + temp.ToString();

}